package io.renren.executor;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @Auther: 63461
 * @Date: 2019/2/13 16:04
 * @Description:
 */
@Service
public class AsyncTaskService {

    @Async
    public void executeAsyncTask(Integer n) {
        System.out.println("线程一：" + n);
    }

    @Async
    public void executeAsyncTaskPlus(Integer n) {
        System.out.println("线程2：" + (n + 1));
    }
}
